package com.wx.fresh.platform.controller;

import com.wx.fresh.common.util.CommonResult;
import com.wx.fresh.platform.vo.suggestionVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author srf
 * @data 2022/4/19
 */
@Api(tags = "平台投诉及建议")
@Controller
@RequestMapping("/suggestion")
public class SuggestionController {
    @ApiOperation(value = "平台投诉与建议")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "phone", value = "电话", required = true, paramType = "from"),
            @ApiImplicitParam(name = "image", value = "图片", required = true, paramType = "from"),
            @ApiImplicitParam(name = "content", value = "内容", required = true, paramType = "from")})
    @PostMapping("/platform")//平台投诉及建议
    public CommonResult platformSuggestion(suggestionVO Suggestion) {
        return null;
    }

    @ApiOperation(value = "商家投诉与建议")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "phone", value = "电话", required = true, paramType = "from"),
            @ApiImplicitParam(name = "image", value = "图片", required = true, paramType = "from"),
            @ApiImplicitParam(name = "content", value = "内容", required = true, paramType = "from")})
    @PostMapping("/business")//商家投诉及建议
    public CommonResult businessSuggestion(suggestionVO Suggestion) {
        return null;
    }

    @ApiOperation(value = "骑手投诉与建议")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "phone", value = "电话", required = true, paramType = "from"),
            @ApiImplicitParam(name = "image", value = "图片", required = true, paramType = "from"),
            @ApiImplicitParam(name = "content", value = "内容", required = true, paramType = "from")})
    @PostMapping("/rider")//骑手投诉及建议
    public CommonResult riderSuggestion(suggestionVO Suggestion) {
        return null;
    }

}
